<?php
declare (strict_types = 1);

namespace app\common\service;

use think\Service;
use app\common\service\api\service\AdminApiService;
use app\common\service\api\service\ResourceApiService;
use app\common\service\api\service\DictionaryApiService;
use app\common\service\api\service\DictionaryValueApiService;
/**
 * 应用服务类
 */
class ApiService extends Service
{
    public function register()
    {
        $this->app->bind('admin_api', AdminApiService::class);
        $this->app->bind('resource_api', ResourceApiService::class);
        $this->app->bind('dictionary_api', DictionaryApiService::class);
        $this->app->bind('dictionary_value_api', DictionaryValueApiService::class);
    }

    public function boot()
    {
        $adminApi = app('admin_api');
        $resourceApi = app('resource_api');
        $ductuibaryApi = app('dictionary_api');
        $ductuibaryValueApi = app('dictionary_value_api');
    }
}
